from system import config
from system import library
from system import controller
from system import model
from system import view
from system import error
from PyQt4 import QtGui, QtCore
"""
class showing(QtGui.QWidget):
    def __init__(self, parent=None):
        QtGui.QWidget.__init__(self)
        mytime = library.l_time
        #mytime = library.l_time(self)
        dtime = mytime.l_time(self)
        mytemp = library.l_temp_ver
        app = mytemp.temp_ver(self)                           
        app.mid = 1
        app.name = "kevin"
        app.passwd = "blackid"
        app.status = 1
        #app.access = mytime.gettime(self)
        app.access = "2010-05-06 05:04:02"
        self.setGeometry(10,10,10,10)
        
        self.setWindowFlags(QtCore.Qt.Window)
        self.show()
        
        
        #soal_t.MainWindow.show()
        #view.v_login.main()
    
        #==================================================================
        #myapp = controller.c_testdb.testdb()              #for test only    
        #myapp.index2()                                    #for test only
        #==================================================================
        #test = controller.validate()                      #for test only
        #test.datatest = 'marevin'                         #for test only
        #data = test.index()                               #for test only
        #print data                                        #for test only

    def mymain(self):
    
        #app.insertdata("login")                           #for test only
        #print list(app.verify())[0][0]                    #for test only
        #print list(app.getdata('kevin','blackid'))[0][0]  #for test only 
        #print list(app.getdata('kevin','blackid'))        #for test only
        #print app.gettimedateA()                          #for test only 
        #print app.cekcookies(app.name, app.passwd)        #for test only 
        #print list(app.getall())                          #for test only
        #print mytime.getdate()                            #for test only
        #error_test = error.e_login()
        #error.e_login.main('error','You has been logout !,\nDo you want to login\nagain ?')                  #for test only
        #app = view.v_login.main()                                                                            #for test only
        #app.main()                                                                                           #for test only
        #def __init__(self, limit=None,where=[None,None],groupby=None,orderby=None,dac=None,fieldname=None):  #for test only
        #myapp = library.db(1,[None,None],None,'id',None,['name,password'])                                   #for test only
        #self.conn = myapp.makeConn()                                                                         #for test only
        #self.curs = self.conn.cursor()                                                                       #for test only
        #self.mydata = myapp.selectbyfield(self.conn,'tpengguna')                                             #for test only
        #print self.mydata                                                                                    #for test only
        #app = model.m_user()                                                                                 #for test only
        #print app.getdata(1)[0]                                                                              #for test only
        #settime = library.l_time()                                                                           #for test only
        #datatime = settime.gettime()                                                                         #for test only
        #temp_login = library.temp_ver(1,str(self.j_username.text()), str(self.j_password.text()),"1", str(datatime),'','',self)
        #temp_login = library.temp_ver('','','','','','','',self)                                             #for test only
        #maxid = temp_login.getmax()                                                                          #for test only
        #print "MAXID = ", maxid                                                                              #for test only
        #import md5                                                                                           #for test only
        #temp_login.insertdatalast(maxid, 'raja', md5.new('bombom').hexdigest(),"1","guru","guru", str(datatime))#for test only
        
        #test_soal = model.m_soal()                                                                           #for test only
        #test_data = test_soal.add_soal("Siapakah todut ?","Todut Marodut !")                                 #for test only
        #print test_data                                                                                      #for test only

        #view.v_login.main()                                                                                  #for test only

        main = view.MainWindows(self)
        main.show()
        del(main)
        
    
        
if __name__ == '__main__':
    import sys
    app = QtGui.QApplication(sys.argv)
    myapp = showing()
    myapp.mymain()
    sys.exit(app.exec_())
    
"""

class showing(view.v_login.MainWindows):
    def __init__(self, parent=None):
        view.v_login.MainWindows.__init__(self)
        
        self.show()
    
if __name__ == '__main__':
    import sys
    app = QtGui.QApplication(sys.argv)
    myapp = showing()
    sys.exit(app.exec_())
    """
    myclass = library.l_temp_ver.temp_ver()
    data = myclass.getAll('soal')
    data2 = (str(data[1][-1]))
    print data2
    """
    
    